package com.rrjjg.app.admin.data.storage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rrjjg.app.mybatis.bean.ConditionalType;
import com.rrjjg.app.mybatis.bean.MyBatisConditional;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 配置表
 * </p>
 *
 * @author vayne
 * @since 2023-04-06
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("PROPERTIES")
@ApiModel(value = "Properties对象", description = "配置表")
public class Properties implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @MyBatisConditional(type = ConditionalType.LIKE_RIGHT)
    @ApiModelProperty("应用名称")
    @TableField("application")
    private String application;

    @MyBatisConditional(type = ConditionalType.LIKE_RIGHT)
    @ApiModelProperty("环境变量")
    @TableField("profile")
    private String profile;

    @MyBatisConditional(type = ConditionalType.LIKE_RIGHT)
    @ApiModelProperty("标签")
    @TableField("label")
    private String label;

    @MyBatisConditional(type = ConditionalType.LIKE_RIGHT)
    @ApiModelProperty("key名称")
    @TableField("`key`")
    private String key;

    @MyBatisConditional(type = ConditionalType.LIKE_RIGHT)
    @ApiModelProperty("值")
    @TableField("value")
    private String value;

    @ApiModelProperty("值详情")
    @TableField("details")
    private String details;
}
